<div class="leftcolumn">
{include file="common/common_leftcolumn.tpl"}
</div>

{php}
echo '<style type="text/css">' . "\n";
$imgurl = $this->get_vars_context('STYLEIMG');
$categories = $this->get_vars_content('categories');
for($i=0, $n=sizeof($categories); $i<$n; $i++) {
	echo 'div.bgs_' . $categories[$i]['categories_link'] . ' {';
	echo '    background-image: url(' . $imgurl . 'bgs_' . $categories[$i]['categories_link'] . '.jpg);';
	echo '    background-position: bottom;' . "\n";
	echo '    background-repeat: no-repeat;' . "\n";
	echo '}' . "\n";
}
echo '</style>' . "\n";
{/php}

<div class="maincolumn bgs_{$CONTENT.category.categories_link}">
{include file="main/blocks/main_block_category.tpl"}

{include file="main/blocks/main_block_category_products.tpl"}
</div>